﻿/*CREATE TRIGGER [dbo].[Variedades_DeletionTrigger] 
    ON [Variedades] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[Variedades_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[VariedadGuid] = [Variedades_Tombstone].[VariedadGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[Variedades_Tombstone] 
    ([VariedadGuid], DeletionDate)
    SELECT [VariedadGuid], GETUTCDATE()
    FROM deleted 
END*/